package test;

/**
 * Created by IntelliJ IDEA.
 * User: senior
 * Date: 15.09.12
 * Time: 12:33
 * To change this template use File | Settings | File Templates.
 */
public class BitOperations {
    public static void main(String[] args) {
        Integer i = new Integer(256);
        System.out.println(Integer.toBinaryString(i));
        System.out.println(Integer.toBinaryString(i >> 1) + " i = " + (i >> 1));
        System.out.println(Integer.toBinaryString(i << 1) + " i = " + (i << 1));

    }
}
